package cn.kgc.controller;

import cn.kgc.dto.Dto;
import cn.kgc.service.UserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @Author:limengxian
 * @Date:Created in 2020/11/24 9:54
 */
@RestController
public class UserController {
    @Resource
    private UserService userService;
    @PostMapping("/login")
    public Dto login(String phone, String password, HttpServletRequest request){
        return userService.login(phone, password, request);
    }
}
